import request from '@/utils/request'

//获取Sku列表
export function reqGetSkuList(page, limit) {
  return request({
    url: `/admin/product/list/${page}/${limit}`,
    method: 'get'
  })
}

//根据SkuId删除Sku
export function reqDeleteSkuById(skuId) {
  return request({
    url: `/admin/product/deleteSku/${skuId}`,
    method: 'delete'
  })
}

//上架
export function reqSkuOnSaleById(skuId) {
  return request({
    url: `/admin/product/onSale/${skuId}`,
    method: 'get'
  })
}

//下架
export function reqSkuCalcelById(skuId) {
  return request({
    url: `/admin/product/cancelSale/${skuId}`,
    method: 'get'
  })
}
